<template>
    <div>
        <div class="app-container">
            1
            <el-table :data="tableData" border fit highlight-current-row style="width: 100%">
                <el-table-column align="center" label="头像">
                    <template slot-scope="{ row }">
                        <img style="width: 50px; height: 50px" :src="row.avatar" alt="" />
                    </template>
                </el-table-column>
                <el-table-column align="center" prop="username" label="用户名"> </el-table-column>
                <el-table-column align="center" prop="phone" label="手机号码"> </el-table-column>
                <el-table-column align="center" prop="pending_activation_ad_coins" label="待激活广告币"> </el-table-column>
                <el-table-column align="center" label="注册时间">
                    <template slot-scope="{ row }">
                        <span>{{ row.registration_time }}</span>
                    </template>
                </el-table-column>
                <!-- <el-table-column prop="order_time" label="下单时间">
                        </el-table-column> -->
                <el-table-column align="center" prop="activated_ad_coins" label="已激活广告币">
                </el-table-column>
                <el-table-column align="center" prop="membership_level" label="会员等级">
                </el-table-column>
                <el-table-column align="center" prop="coupon_list" label="优惠券列表">
                </el-table-column>
                <!-- <el-table-column align="center" fixed="right" label="操作">
                    <template slot-scope="scope">
                        <el-button @click="viewBth(scope.row)" type="text" size="small">查看</el-button>
                        <el-button type="text" size="small" @click="editBth(scope.row)">编辑</el-button>
                        <el-button type="text" size="small">上传</el-button>
                    </template>
                </el-table-column> -->
            </el-table>
            <!-- :limit.sync="10" -->
            <!-- <Pagination v-show="total > 0" :total="total" :page="page" @pagination="pagination" /> -->
        </div>
    </div>
</template>

<script>
import { queryCustom } from "@/api/article";
import { mapState } from 'vuex'
export default {
    data() {
        return {
            page: 1,
            tableData: [],
        }
    },
    methods: {
        getList() {
            let params = {
                page: this.page,
                // ...this.regionalData,
            };
            queryCustom(params).then(res => {
                // res.result.forEach(item => {
                //     item.entry_time = timestampToTime(item.entry_time)
                // });
                this.tableData = res.result;
            })
        }
    },
    mounted() {
        this.getList()
    },
    computed: {
        ...mapState('user', { regionalData: "regionalData" })
    },
}
</script>

<style></style>